package com.lin.easyexceldemo.controller;

import com.lin.easyexceldemo.service.UserTestService;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/userTest")
public class UserTestController {

    @Autowired
    private UserTestService userTestService;

    @RequestMapping("/exportByCursor")
    public void exportByCursor(HttpServletResponse response) {
        userTestService.exportByCursor(response);
    }

    @RequestMapping("/exportByPage")
    public void exportByPage(HttpServletResponse response) {
        userTestService.exportByPage(response);
    }
}
